﻿<Window x:Class="Sample2_CompositeShader.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Image x:Name="effectTarget" Source="Chrysanthemum.jpg" />
        <StackPanel Grid.Row="1"
                    Orientation="Horizontal">
            <TextBlock Text="Shader definition: " 
                       Margin="2" VerticalAlignment="Center" />
            <CheckBox x:Name="chkInvertX" Margin="2" VerticalAlignment="Center">Invert X</CheckBox>
            <CheckBox x:Name="chkInvertY" Margin="2" VerticalAlignment="Center">Invert Y</CheckBox>
            <CheckBox x:Name="chkWave" Margin="2" VerticalAlignment="Center">Wave</CheckBox>
            <CheckBox x:Name="chkInvertColors" Margin="2" VerticalAlignment="Center">Invert colors</CheckBox>
            <CheckBox x:Name="chkBaW" Margin="2" VerticalAlignment="Center">Black and white</CheckBox>
            <Button Click="OnApplyShader">Apply</Button>
        </StackPanel>
    </Grid>
</Window>
